import Layout from "@/layout";

const brokerageRouter = {
  path: "/brokerage/online",
  component: Layout,
  redirect: "noRedirect",
  name: "brokerage",
  alwaysShow: true,
  hidden: false,
  meta: {
    title: "财务管理",
    abbre: "财务",
    icon: "left_menu_brokerage",
    navigation: "/brokerage",
    id: "407"
  },
  children: [
    {
      path: "/brokerage/online",
      component: () => import("@/views/brokerage/online"),
      name: "brokerage_online",
      hidden: false,
      meta: {
        title: "在线支付佣金",
        noCache: true,
        navigation: "/brokerage/online",
        icon: "menu_big_data"
      }
    },
    {
      path: "/brokerage/offline",
      component: () => import("@/views/brokerage/offline"),
      name: "brokerage_offline",
      hidden: false,
      meta: {
        title: "货到付款佣金",
        noCache: true,
        navigation: "/brokerage/offline",
        icon: "menu_big_data"
      },
    },
    {
      path: "/brokerage/offline/offline_order_detail",
      component: () => import("@/views/brokerage/offline_order_detail"),
      hidden: true,
      name: "brokerage_offline_orderdetail",
      meta: {
        title: "订单详情",
        bread: "货到付款佣金,查看订单",
        noCache: true,
        navigation: "/brokerage/offline",
        icon: "menu_big_data"
      }
    },
    {
      path: "/brokerage/devorder",
      component: () => import("@/views/brokerage/devorder"),
      name: "brokerage_devorder",
      hidden: false,
      meta: {
        title: "设备订单",
        noCache: true,
        navigation: "/brokerage/devorder",
        icon: "menu_big_data"
      },
    },
    {
      path: "/brokerage/devorder/detail",
      component: () => import("@/views/brokerage/devorder_detail"),
      name: "brokerage_devorder_detail",
      hidden: true,
      meta: {
        title: "设备订单详情",
        noCache: true,
        navigation: "/brokerage/devorder",
        icon: "menu_big_data"
      },
    },
    {
      path: "/brokerage/software",
      component: () => import("@/views/brokerage/software"),
      name: "brokerage_software",
      hidden: false,
      meta: {
        title: "软件续费",
        noCache: true,
        navigation: "/brokerage/software",
        icon: "menu_big_data"
      },
    },
  ]
};

export default brokerageRouter;
